package com.zxstudio.bulls.stock.user.dao;

import com.zxstudio.bulls.stock.entity.user.TradeAccount;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface ITradeAccountDao {

    /**
     * 新增交易賬戶信息
     * @param record
     * @return
     */
    int insert(TradeAccount record);

    /**
     * 根據帳戶編號獲取交易用戶對象
     * @param accountNo
     * @return
     */
    TradeAccount getByAccountNo(@Param("accountNo")String accountNo);
}
